﻿# -*- coding: utf-8 -*-
from core import *
from google.appengine.ext import webapp
from google.appengine.ext.webapp import template

class MainHandler(webapp.RequestHandler):
    def get(self):
        pageData = Core(self).prepareData()
        self.response.write(template.render('templates/page.html', pageData))

    def post(self):
        Core(self).postData()

app = webapp.WSGIApplication([('/*.*', MainHandler)],
                             debug=True)

